import java.rmi.*;
import java.net.*;
import java.util.*;
import java.util.Scanner;
import java.util.Hashtable;

public class Lanceur_Client 
{
	public static void main(String [] args) 
	{
		if (args.length != 4) 
		{
			System.out.println("Usage : java Lanceur_Client <machine du Serveur:port du rmiregistry> <ipClient> <portEmission> <file>");
			System.exit(0);
		}
		
		try 
		{	
			Client_Impl client = new Client_Impl(args[0], args[1], args[2], args[3]);
		}
		catch (RemoteException re) 
		{ 
			System.out.println(re) ; 
		}
		catch (Exception e) 
		{
			System.out.println(e);
		}
	}
}
